翻訳と辞書
Words near each other
・ Tombs of the Kings (Jerusalem)
・ Tombs of the Kings (Paphos)
・ Tombs of the Nobles
・ Tombs of the Nobles (Amarna)
・ Tombs of the Nobles (Luxor)
・ Tombs of the Sanhedrin
・ Tombs of Via Latina
・ Tombstone (advertising)
・ Tombstone (comics)
・ Tombstone (data store)
・ Tombstone (disambiguation)
・ Tombstone (film)
・ Tombstone (financial industry)
・ Tombstone (manufacturing)
・ Tombstone (pizza)
Tombstone (programming)
・ Tombstone (typography)
・ Tombstone Blues
・ Tombstone Canyon
・ Tombstone Courthouse State Historic Park
・ Tombstone diagram
・ Tombstone High School
・ Tombstone Hill
・ Tombstone Hill (Palmer Archipelago)
・ Tombstone Historic District
・ Tombstone Junction
・ Tombstone mentality
・ Tombstone Municipal Airport
・ Tombstone Records
・ Tombstone Territorial Park


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Tombstone (programming) : ウィキペディア英語版
Tombstone (programming)

Tombstones are a mechanism to detect dangling pointers that can appear in certain computer programming languages, e. g. C, C++ and assembly languages, and to act as a containment to their dangerous effects.
A tombstone is a structure that acts as an intermediary between a pointer and the heap-dynamic data in memory. The pointer – sometimes called the handle – points only at tombstones and never to the memory that holds the actual value. When the data is deallocated, the tombstone is set to a null (or, more generally, to a value that is illegal for a pointer in the given runtime environment), indicating that the variable no longer exists. This prevents the use of invalid pointers, which would otherwise access the memory area that once belonged to the now deallocated variable, although it may already contain other data, in turn leading to corruption of in-memory data. Depending on the operating system, the CPU can automatically detect such an invalid access (e. g. for the null value: a ''null pointer dereference error''). This supports in analyzing the actual reason, a programming error, in debugging, and it can also be used to abort the program in production use, to prevent it from continuing with invalid data structures.
In more generalized terms, a tombstone can be understood as a marker for "this data is no longer here". For example, in filesystems it may be efficient when deleting files to mark them as "dead" instead of immediately reclaiming all their data blocks.
The downsides of using tombstones include a computational overhead and additional memory consumption: extra processing is necessary to follow the path from the pointer to data through the tombstone, and extra memory is necessary to retain tombstones for every pointer throughout the program. One other problem is that all the code – that needs to work with the pointers in question – needs to be implemented to use the tombstone mechanism.
No popular programming language currently uses tombstones. However, built–in support by the programming language or the compiler is not necessary to use them.
==See also==

*Locks-and-keys

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Tombstone (programming)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.